package com.example.modules.course.model;

import com.example.common.spring.data.AbstractEntity;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.Setter;
import org.springframework.data.jpa.domain.support.AuditingEntityListener;

import javax.persistence.Entity;
import javax.persistence.EntityListeners;
import javax.persistence.Table;

/**
 * @Auther: Oliver
 * @Date: 2019/2/21 11:16
 * @Description:
 */
@Entity
@Table(name = "t_course")
@EntityListeners(AuditingEntityListener.class)
@Getter
@Setter
@EqualsAndHashCode(callSuper = true)
public class TCourse extends AbstractEntity<TCourse> {

    private String courseName; //课程名称
    private String courseUrl; //课程连接
    private String courseImg; //课程图片
    private String courseDesc; //课程描述
    private int courseType; //课程类型 0：单体架构  1：分布式架构 2：大数据
    private String courseSource; //课程来源

}
